<!DOCTYPE html>  
<html>  
  <head>  
    <title>Demo 12</title>  
  </head>  
  <body>  
    <h1>Heading</h1>  
    <p id="demo">Paragraph</p>
    <input type="button" value="Click" onclick="dd()">  
  <script>  
     function dd(){
     document.getElementById("demo").innerHTML = "Hello CodingMan"; 
     } 
  </script>
  <noscript>Sorry! Your browser does not support JavaScript.!</noscript>
  </body>  
</html>